<?php
$year==2019;
echo'<h2>闰年的判断</h2>';
echo'<p>输入年份:'.$year.'年</p>';
if (($year%4==0)&&($year % 100 !=0)||($year%400==0)){
    echo'<p>判断的结果：'.$year.'年是闰年</p>';

}
else{
    echo'<p>判断的结果：'.$year.'年不是闰年</p>';
}
